package com.woniuxy.mapper;

import com.woniuxy.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface LoginMapper {
    @Select("SELECT * FROM user WHERE account = #{account} AND password = #{password}")
    User login(@Param("account") String account,@Param("password") String password);
    @Select("SELECT * FROM user WHERE email = #{email}")
    User getUserByEmail(String email);
}
